/**
 * @description 用户相关常量
 */
export enum UserConstant {
    tokenName = "tokenName",
    tokenValue = "tokenValue",
    male = "男",
    female = "女"
}

export function getGandar(code:number):string{
    if(code === 0) return UserConstant.male;
    if(code === 1) return UserConstant.female;
    return "";
}

export function getGandarCode(gander:string):number {
    if(gander === "男") return 0;
    if(gander === "女") return 1;
    return -1;
}

/**
 * @description 页面相关常量
 */
export enum PageConstant {
    ProfileEditPage = "/profile/edit",
    LoginPage = "/login",
    ProfilePage = "/profile",
    HomePage = "/",
    AddBgwSubjectPage = "/baguwen/add",
    bgwDetailPage = "/baguwen/topic",
    ojSubmitPage = "/ojsubmit",
    ojAddSubjectPage = "/ojsubmit/add"
}

/**
 * @description 代码执行状态
 */
export enum SubjectSubmitStatusEnum {
    PENDING = 1, // 执行中
    SUCCESS = 2, // 通过测试
    ERROR = 3 // 未通过测试或者执行失败
}
